package application.model;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement(name = "appliances")
public class AppliancesModel
{
    private List<ApplianceModel> applianceModels = new ArrayList<ApplianceModel>();

    @XmlElement(name = "appliance")
    public List<ApplianceModel> getApplianceModels()
    {
        return applianceModels;
    }

    public void setApplianceModels(List<ApplianceModel> applianceModels)
    {
        this.applianceModels = applianceModels;
    }

    public void addAppliance(ApplianceModel applianceModel)
    {
        applianceModels.add(applianceModel);
    }
}
